package com.qqtech.qquan.mall.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.mall.enums.MallConst;

@SuppressWarnings("serial")
public class MallProductSpecVo extends MallProductSpec{
	public java.lang.String getSpecLogo() {
		String logo="";
		if(StringUtil.isNotBlank(this.getImg())){
			String imgs[] = this.getImg().split(";");
		    logo = this.getImgHandleDomain() + imgs[0] + MallConst.IMG_SMALL;
		}
		return logo;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}